package com.ruoyi.teach.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 请假管理对象 teacher_leave
 *
 * @author ruoyi
 * @date 2023-11-23
 */
public class TeacherLeave extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 请假编号 */
    private Long leaveId;

    /** 请假老师id */
    @Excel(name = "请假老师id")
    private Long teacherId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String teacherName;

    /** 请假类型 */
    @Excel(name = "请假类型")
    private String leaveType;

    /** 请假原因 */
    @Excel(name = "请假原因")
    private String reason;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 开始时间 */
    @Excel(name = "开始时间")
    private String startTime;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private String endTime;

    /** 请假天数 */
    @Excel(name = "请假天数")
    private BigDecimal leaveTotalDay;

    public void setLeaveId(Long leaveId)
    {
        this.leaveId = leaveId;
    }

    public Long getLeaveId()
    {
        return leaveId;
    }
    public void setTeacherId(Long teacherId)
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId()
    {
        return teacherId;
    }
    public void setTeacherName(String teacherName)
    {
        this.teacherName = teacherName;
    }

    public String getTeacherName()
    {
        return teacherName;
    }
    public void setLeaveType(String leaveType)
    {
        this.leaveType = leaveType;
    }

    public String getLeaveType()
    {
        return leaveType;
    }
    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason()
    {
        return reason;
    }
    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }
    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }

    public String getStartTime()
    {
        return startTime;
    }
    public void setEndDate(Date endDate)
    {
        this.endDate = endDate;
    }

    public Date getEndDate()
    {
        return endDate;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }
    public void setLeaveTotalDay(BigDecimal leaveTotalDay)
    {
        this.leaveTotalDay = leaveTotalDay;
    }

    public BigDecimal getLeaveTotalDay()
    {
        return leaveTotalDay;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("leaveId", getLeaveId())
                .append("teacherId", getTeacherId())
                .append("teacherName", getTeacherName())
                .append("leaveType", getLeaveType())
                .append("reason", getReason())
                .append("startDate", getStartDate())
                .append("startTime", getStartTime())
                .append("endDate", getEndDate())
                .append("endTime", getEndTime())
                .append("leaveTotalDay", getLeaveTotalDay())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
